package com.graduation.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum DocTypeEnum {
    LAW(0, "法律"),
    CASE(1, "案例"),
    JUDGMENT(2, "判决书"),
    ARTICLE(3, "文章");

    @JsonValue
    @EnumValue
    private final Integer value;
    private final String desc;

    DocTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
